/**
 * @(#)OrderCartConvertor.java, 2018/2/12.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.meta.convertor;

import org.wangzx.exercise.meta.bean.OrderCartBean;
import org.wangzx.exercise.meta.vo.ItemVO;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public class OrderCartConvertor {
    static public OrderCartBean voToBo(ItemVO itemVO) {
        if(itemVO == null) {
            return null;
        }
        OrderCartBean bean = new OrderCartBean();
        bean.setItemId(itemVO.getId());
        bean.setPrice(itemVO.getPrice());
        bean.setCount(itemVO.getCount());
        return bean;
    }
}